package com.ds.infrastructure.hyperspace.console.service.inf;

import com.ds.infrastructure.hyperspace.console.entity.table.TbEnvironment;
import com.ds.infrastructure.hyperspace.console.service.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author: yaozhendong
 * @create: 2019-09-18 10:59
 **/
public interface IEnvironmentService extends BaseService<TbEnvironment> {
    TbEnvironment getOrThrow(Long id);

    Map<Long, String> getMap(List<Long> idList);

    TbEnvironment getAndSave(String environmentName);

    Long fork(TbEnvironment entity);

    List<TbEnvironment> getAll();
}
